package com.peng.egmybatis1.pojo.entity;

import lombok.Data;
import org.springframework.stereotype.Repository;

/**
 * Product商品类
 * @Author peng
 * @Date 2024-04-17 19:10
 */
@Data
@Repository
public class Product {
    private int id;
    private String title;
    private double price;
    private int stock;

    public Product() {
    }

    public Product(int id, String title, double price, int stock) {
        this.id = id;
        this.title = title;
        this.price = price;
        this.stock = stock;
    }
}
